package com.erp.gather.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 美工图集修改业务对象 erp_product_atlas
 *
 * @author erp
 * @date 2023-03-21
 */

@Data
public class ErpProductAtlasBo extends BaseEntity {

    /**
     * 图集id
     */
    @NotNull(message = "图集id不能为空", groups = { EditGroup.class })
    private Long atlasId;

    /**
     * 标签id
     */
    @NotNull(message = "标签id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long tagId;

    /**
     * 图集类别
     */
    @NotBlank(message = "图集类别不能为空", groups = { AddGroup.class, EditGroup.class })
    private String atlasType;

    /**
     * 图片地址
     */
    @NotBlank(message = "图片地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pictureUrl;
    /**
     * 创建时间
     */
    @NotBlank(message = "创建时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date createTime;


}
